<template>
    <div class="body_box">
        <div class="main">
            <div class="head">
                <div class="picStyleCancel" v-if="paramData.mealticketApplyStatus == '1'" />
                <div class="f" v-if="paramData.mealticketApplyStatus == '1'">
                    未提交，请及时提交
                </div>
                <div class="picStyle" v-if="paramData.mealticketApplyStatus == '2'" />
                <div class="f" v-if="paramData.mealticketApplyStatus == '2'">
                    请稍后，审批中
                </div>
                <div class="picStyle" v-if="paramData.mealticketApplyStatus==='5'&& paramData.approvalResult==='1'" />
                <div class="f" v-if="paramData.mealticketApplyStatus==='5'&& paramData.approvalResult==='1'">
                    审批通过
                </div>
                <div class="picStyleCancel" v-if="paramData.mealticketApplyStatus==='5'&& paramData.approvalResult==='2'" />
                <div class="f" v-if="paramData.mealticketApplyStatus==='5'&& paramData.approvalResult==='2'">
                    审批不通过
                </div>
            </div>

            <div class="fContentMain">
                <div class="contentC">
                    <div class="title">
                        <div>食堂</div>
                        <div>{{ paramData.canteenName }}</div>
                    </div>
                    <div class="title">
                        <div>申请日期</div>
                        <div>{{ paramData.mealticketApplyDate }}</div>
                    </div>
                    <div class="title">
                        <div>有效日期</div>
                        <div>{{ paramData.mealticketEffectiveType==='6'?'无期限':paramData.mealticketEffectiveDate }}</div>
                    </div>
                    <div class="title">
                        <div>餐券数量</div>
                        <div>{{ paramData.mealticketApplyNum }}</div>
                    </div>
                </div>
            </div>

            <div class="fContentMain fContentMainBto"  >
                <div class="contentC">
                    <div class="title">
                        <div>申请人</div>
                        <div>{{ paramData.applicantName }}</div>
                    </div>
                    <div class="title">
                        <div>申请部门</div>
                        <div>{{ paramData.deptName }}</div>
                    </div>
                    <div class="title">
                        <div>申请单位</div>
                        <div>{{ paramData.corpName }}</div>
                    </div>
                    <div class="title">
                        <div>补充说明</div>
                        <div>{{ paramData.remarks }}</div>
                    </div>

                    <div class="title">
                        <div>审批意见</div>
                        <div>{{ paramData.remark }}</div>
                    </div>
                </div>
            </div>
        </div>
    </div>

</template>
<script>

    export default {
        name: '',
        props: {},
        components: {},
        data() {
            return {
                paramData: {
                },
            }
        },
        created() {
        },
        methods: {
            getData(obj) {
                this.paramData = obj;
            },
        },
    }
</script>
<style lang="less" scoped>
    .body_box {
        background-color: #f9f9f9;
        height: 100%;

        .main {

            .head {
                height: 130px;
                display: flex;
                align-items: center;
                justify-content: space-around;
                width: 100%;
                padding: 10px 0px;
                background-color: rgb(254, 255, 255);
                flex-direction: column;

                .picStyle {
                    background-image: url('../../../../assets/images/app_success.png');
                    background-repeat: no-repeat;
                    background-size: 100% 100%;
                    height: 65px;
                    width: 230px;
                }

                .picStyleCancel {
                    background-image: url('../../../../assets/images/app_cancel.png');
                    background-repeat: no-repeat;
                    background-size: 100% 100%;
                    height: 50px;
                    width: 85px;
                }
                .picStyleWarn {
                    background-image: url('../../../../assets/images/app_warn.jpeg');
                    background-repeat: no-repeat;
                    background-size: 100% 100%;
                    height: 60px;
                    width: 85px;
                }
                .f {
                    font-size: 20px;
                    font-weight: 600;
                }

                .s {
                    font-size: 16px;
                    font-weight: 600;
                    color: #d9a553;
                }
            }

            .fContentMain {
                display: flex;
                justify-content: space-between;
                align-items: center;
                background: rgb(254, 255, 255);
                color: rgb(51, 51, 51);
                border: 0.1px solid rgb(220, 223, 230);
                border-radius: 6px;
                height: 130px;
                margin: 10px;
                padding: 10px;

                .contentC {
                    display: flex;
                    align-items: flex-start;
                    background: rgb(255, 255, 255);
                    color: rgb(51, 51, 51);
                    height: 100%;
                    flex-direction: column;
                    justify-content: space-between;

                    .title {
                        display: flex;
                        width: 100%;
                        margin: 5px 10px;


                        div:first-child {
                            width: 100px;
                            color: #878888;
                        }

                        div:last-child {
                            width: calc(100% - 100px);
                            font-weight: 500;
                        }

                    }
                }

            }

            .fContentMainBto{
                height: 150px !important;

            }
        }

        .buttonMain {
            text-align: center;
            position: absolute;
            width: 100%;
            //background: #ffffff;
            padding: 10px 0;
            right: 0px;
            bottom: 0px;
            height: 45px;
            z-index: 1;

            .buttonC {
                color: #ffffff;
                background-color: #d9a553;
                border: 1px solid #d9a553;
                border-radius: 20px;
                height: 45px;
                line-height: 45px;
                width: calc(100% - 20px);
                font-size: 17px;
            }
        }


    }
</style>